<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String realPath = this.getServletContext().getContextPath();
%>
<link href="<%=realPath%>/resources/css/grid.css" rel="stylesheet">
<div class="row row-offcanvas row-offcanvas-right">

	<div class="col-xs-12 col-sm-9">
		<div class="jumbotron timing-sign">
			<h1>TSC - Timing Sign</h1>
			<p>欢迎使用定时签到服务，TSC - Timing Sign 会将您添加的任务每天定时执行，祝您使用愉快。</p>
		</div>
		<div class="btn-group">
			<button type="button" class="btn btn-info dropdown-toggle"
				data-toggle="dropdown">
				请选择一个账号 <span class="caret"></span>
			</button>
			<ul class="dropdown-menu" role="menu">
				<jstl:forEach items="${bd_users }" var="bd_user">
					<li><a href="<%=realPath %>/menu/task/add/${bd_user.buId}">${bd_user.username }</a></li>
				</jstl:forEach>
			</ul>
		</div>
		<h3>我的任务列表</h3>
		<p>message</p>
		<div class="row">
			<div class="col-md-3 head">ID</div>
			<div class="col-md-3 head">时间</div>
			<div class="col-md-2 head">状态</div>
			<div class="col-md-2 head">结果</div>
			<div class="col-md-2 head">操作</div>
		</div>
		<br />
		<jstl:forEach items="${sign_tasks }" var="task">
			<div class="row">
				<div class="col-md-3 body">${task.name }</div>
				<div class="col-md-3 body">${task.exeTime }</div>
				<div class="col-md-2 body">${task.exeStatus }</div>
				<div class="col-md-2 body">${task.exeResult }</div>
				<div class="col-md-2 body" style="padding:8px" >
					<div class="btn-group">
						<button type="button" class="btn btn-info dropdown-toggle"
							data-toggle="dropdown">
							请选择 <span class="caret"></span>
						</button>
						<ul class="dropdown-menu" role="menu">
								<li><a href="<%=realPath %>/menu/task/del/${task.tstId}">删除</a></li>
								<li><a href="<%=realPath %>/menu/task/exe/${task.tstId}">立即执行</a></li>
						</ul>
					</div>
				</div>
			</div>
		</jstl:forEach>

	</div>

	<div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar"
		role="navigation">
		<jsp:include page="list-group.jsp" />
	</div>
	<!--/.sidebar-offcanvas-->
</div>
<!--/row-->

<hr>

<footer>
	<p>&copy; Company 2014</p>
</footer>
